<?php
/* Clase del formulario FrmDbServer que permite configurar el servidor de la BD
 */
class FrmDbServer{
	private $setter;
	private $easyForm;

	function FrmDbServer(){
		$this->setter=new Setter("../../Config");
		
		$this->easyForm=new EasyForm("frmDbServer","frmdbServer","post", "../../Events/Admin/EventsFrmDbServer.php","Configura la ubicación de la base de datos:","", "", "");
		
		$this->easyForm->addInput(1,"URL:", "urlDB", "urlDB","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("URL:",$this->setter->getDataBaseHost());
		
		$this->easyForm->addInput(1,"Data Base Name:", "dbName", "dbName","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Data Base Name:",$this->setter->getDataBaseName());
				
		$this->easyForm->addInput(1,"User Name:", "userName", "userName","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("User Name:",$this->setter->getDataBaseUserName());
		
		$this->easyForm->addInputPassword(1,"Password:", "pass", "pass","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Password:",$this->setter->getDataBasePassword());
		
		$this->easyForm->addButton(2,"","actualizarDbServer","actualizarDbServer","","Actualizar","Actualizar","button","","button","","","","","",array("onClick"=>"GETMethodSend('urlDB','dbName','userName','pass',this.id,'adminContent','../../Events/Admin/EventsFrmDbServer.php')"));
	}
	function show(){
		$this->easyForm->show(1,5);
	}
}

?>